package com.ruoyi.whole.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.utils.vo.PoCommon;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 车辆发运
对象 dms_whole_vehicle_delivery
 * 
 * @author liuchuanfa
 * @date 2024-03-08
 */
public class DmsWholeVehicleDelivery extends PoCommon
{
    private static final long serialVersionUID = 1L;

    /** 采购订单id */
    @Excel(name = "采购订单id")
    private Long purchaseId;

    /** 发运单号 */
    @Excel(name = "发运单号")
    private String deliveryNo;

    /** 车辆发运状态1已发运、2已到货、3已签收 */
    @Excel(name = "车辆发运状态", readConverterExp = "1=已发运、2=已到货、3=已签收")
    private Integer status;

    /** 发运备注 */
    @Excel(name = "发运备注")
    private String forwardingRemark;

    /** 发运操作日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "发运操作日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date forwardingDate;

    /** 审核人id */
    @Excel(name = "审核人id")
    private Long auditorId;

    /** 审核人名称 */
    @Excel(name = "审核人名称")
    private String auditorName;

    /** 审核时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "审核时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date auditorTime;


    public void setPurchaseId(Long purchaseId) 
    {
        this.purchaseId = purchaseId;
    }

    public Long getPurchaseId() 
    {
        return purchaseId;
    }
    public void setDeliveryNo(String deliveryNo) 
    {
        this.deliveryNo = deliveryNo;
    }

    public String getDeliveryNo() 
    {
        return deliveryNo;
    }
    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }
    public void setForwardingRemark(String forwardingRemark) 
    {
        this.forwardingRemark = forwardingRemark;
    }

    public String getForwardingRemark() 
    {
        return forwardingRemark;
    }
    public void setForwardingDate(Date forwardingDate) 
    {
        this.forwardingDate = forwardingDate;
    }

    public Date getForwardingDate() 
    {
        return forwardingDate;
    }
    public void setAuditorId(Long auditorId) 
    {
        this.auditorId = auditorId;
    }

    public Long getAuditorId() 
    {
        return auditorId;
    }
    public void setAuditorName(String auditorName) 
    {
        this.auditorName = auditorName;
    }

    public String getAuditorName() 
    {
        return auditorName;
    }
    public void setAuditorTime(Date auditorTime) 
    {
        this.auditorTime = auditorTime;
    }

    public Date getAuditorTime() 
    {
        return auditorTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("purchaseId", getPurchaseId())
            .append("deliveryNo", getDeliveryNo())
            .append("status", getStatus())
            .append("forwardingRemark", getForwardingRemark())
            .append("forwardingDate", getForwardingDate())
            .append("auditorId", getAuditorId())
            .append("auditorName", getAuditorName())
            .append("auditorTime", getAuditorTime())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("createBy", getCreateBy())
            .append("updateBy", getUpdateBy())
            .append("createUserName", getCreateUserName())
            .append("updateUserName", getUpdateUserName())
            .append("version", getVersion())
            .append("deleteFlag", getDeleteFlag())
            .toString();
    }
}
